package org.jeecg.modules.analysisachievement.achclasses.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.analysisachievement.achclasses.mapper.AchClassSubjectProjScoreMapper;
import org.jeecg.modules.analysisachievement.achclasses.mapper.AchClassSubjectScoreMapper;
import org.jeecg.modules.analysisachievement.achclasses.service.IAchClassSubjectProjScoreService;
import org.jeecg.modules.analysisachievement.achclasses.vo.AchClassSubjectProjScoreVo;
import org.jeecg.modules.analysisachievement.achclasses.vo.AchClassSubjectScoreVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description: lcv_ach_class_subject_proj_score
 * @author: baochangrong
 * @Date:   2022-03-23
 * @Version: V1.0
 */
@Service
public class AchClassSubjectProjScoreServiceImpl extends ServiceImpl<AchClassSubjectProjScoreMapper, AchClassSubjectProjScoreVo> implements IAchClassSubjectProjScoreService {
    @Autowired
    AchClassSubjectProjScoreMapper achClassSubjectProjScoreMapper;

    @Override
    public IPage<AchClassSubjectProjScoreVo> queryAchClassSubjectProjScoreVoLists(AchClassSubjectProjScoreVo achClassSubjectProjScoreVo, Map<String,String> queryParam, Page<AchClassSubjectProjScoreVo> page){
        //获取该租户下所有数据
        List<AchClassSubjectProjScoreVo> achClassSubjectProjScoreVoList = achClassSubjectProjScoreMapper.queryAchClassSubjectProjScoreVoLists(achClassSubjectProjScoreVo,queryParam);
        return page.setRecords(achClassSubjectProjScoreVoList);
    }
}
